﻿using WebHome_API.Models.DBModels;

namespace WebHome_API.Models.DataModels
{
    public class GalList
    {
        public List<Gal_Table> Data { get; set; }

        public PageBase<Gal_Table> Page { get; set; }

        public GalList()
        {
        }

        public GalList(List<Gal_Table> list, int page, int perPage)
        {
            var cur = list.Skip((page - 1) * perPage).Take(perPage).ToList();
            this.Page = new(list, page, perPage);
            this.Data = cur;
        }
    }
}
